﻿using System;
namespace Model.Base
{
    /// <summary>
    /// 模型层，基础类
    /// </summary>
    public class BaseCondition : BaseModel
    {
        /// <summary>
        /// 获取的条数
        /// </summary>
        public int Top { get; set; }

        /// <summary>
        /// 直接的查询条件
        /// </summary>
        public string Wheres {get;set; }

        /// <summary>
        /// 关键字
        /// </summary>
        public string KeyWord { get; set; }

        /// <summary>
        /// 聚集字段
        /// </summary>
        public string GroupBy { get; set; }

        /// <summary>
        /// 排序字段
        /// </summary>
        public string OrderBy { get; set; }

        /// <summary>
        /// 页面索引
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 每页显示条数
        /// </summary>
        public int PageSize { get; set; }
    }
}
